// source --> https://myadlc.org/wp-content/plugins/give/assets/dist/js/give.js?ver=54434f04079f3f89 (()=>{var e,t={87757:(e,t,n)=>{e.exports=n(35666)},50743:function(e,t){!function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function u(e){return e&&"[object Object]"===s.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r3?l.length%3:0;return s+(p?l.substr(0,p)+o.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(c(e))return f(e,(function(e){return y(e,t,n,r,o,a)}));e=v(e);var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),m(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=p(s.format),y=g.pos.indexOf("%s")0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),m(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(w,(function(e,t){return l(e)&&e.length{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("Give:onGatewayLoadSuccess"),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);var r=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(r),jQuery(e).unblock()}))}jQuery(document).ready((function(n){Give.form.fn.isFormExist()&&(n(".give-loading-text").hide(),n(".give-form").each((function(e,t){var n,r;t=jQuery(t),(n=Give.form.fn.getNonceInfo(t)).el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),r=0>(r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life")))-Date.now())?r:r+100,window.setTimeout((function(){Give.form.fn.resetAllNonce(t)}),r)}))),n(document).on("click",".give-checkout-login",(function(e){var t=n(this),r=n(this).parents("form"),i=t.parents("div.give-login-account-wrap").find(".give-loading-text"),o={action:t.data("action"),form_id:n(r).find('[name="give-form-id"]').val()};return i.show(),n.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(e){var t=n(r).find("[id^=give-checkout-login-register]");t.length&&parseInt(t.html().trim().length)?n(r).find("[id^=give-checkout-login-register]").html(e):n(r).find('[id^="give_checkout_user_info"]').html(e),n(r).find(".give-submit-button-wrap").hide()})).done((function(){i.hide(),give_fl_trigger()})),!1})),n(document).on("click",".give-checkout-register-cancel",(function(e){e.preventDefault();var t=n(this),r=n(this).parents("form"),i={action:t.data("action"),form_id:n(r).find('[name="give-form-id"]').val()};n.post(Give.fn.getGlobalVar("ajaxurl"),i,(function(e){n(r).find("[id^=give-checkout-login-register]").replaceWith(n.parseJSON(e.fields)),n(r).find("[id^=give-checkout-login-register]").css({display:"block"}),n(r).find(".give-submit-button-wrap").show()})).done((function(){give_fl_trigger()}))})),n(document).on("click","[id^=give-login-fields] input[type=submit]",(function(r){r.preventDefault();var i=n(this).val(),o=n(this).parents("form");n(this).val(Give.fn.getGlobalVar("purchase_loading")),o.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var a={action:"give_process_donation_login",give_ajax:1,give_user_login:o.find("[name=give_user_login]").val(),give_user_pass:o.find("[name=give_user_pass]").val(),give_form_id:o.find("[name=give-form-id]").val()};n.post(Give.fn.getGlobalVar("ajaxurl"),a,(function(r){null!=n.trim(e(r.success))&&1==r.success&&void 0!==e(r.data)?(o.find(".give_errors").remove(),o.find("[id^=give-checkout-login-register]").before(r.data),o.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(o).then((function(e){t(o,o.find(".give-gateway-option-selected input").val())}))):(o.find("[id^=give-login-fields] input[type=submit]").val(i),o.find(".give-loading-animation").fadeOut(),o.find(".give_errors").remove(),o.find("[id^=give-user-login-submit]").before(r.data))}))})),n(document).on("change","select#give-gateway, input.give-gateway",(function(e){e.preventDefault();var r=n(this).val();return"0"==r?(console.log("There was a problem loading the selected gateway"),!1):(t(n(this).parents("form"),r),!1)})),n("body").on("click","#give-confirm-email-btn",(function(e){var t=n(this),r={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return t.text(Give.fn.getGlobalVar("loading")),t.attr("disabled","disabled"),n.post(Give.fn.getGlobalVar("ajaxurl"),r,(function(e){"error"===(e=JSON.parse(e)).status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())})),!1})),n("body").on("click",'form.give-form input[name="give-purchase"].give-submit',(function(e){var t=n(this),r=t.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()){e.preventDefault();var a=n(this).val();n(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),n.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",(function(e){"success"==n.trim(e)?(r.find(".give_errors").remove(),n(o).submit(),r.trigger("give_form_validation_passed")):(t.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(e),Give.form.fn.disable(r,!1))}))}else i.fadeOut()}));var r=document.getElementById("give-receipt");if(r){var i={action:"get_receipt",shortcode_atts:r.getAttribute("data-shortcode"),donation_id:r.getAttribute("data-donation-key"),receipt_type:r.getAttribute("data-receipt-type")};i[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),n.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:i,success:function(e){if(r.innerHTML=e,r.parentElement.classList.contains("give-form-templates"))var t=setInterval((function(){window.parentIFrame&&(clearInterval(t),window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"}))}),50)}})}}))},51325:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'+Give.fn.getGlobalVar("general_loading")+"").prop("disabled",!0);var r={action:"give_get_states",country:e.val(),field_name:"card_state"};t.ajax({type:"POST",data:r,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var r="",i=e.states_label,a=n.find('input[name="card_state"], select[name="card_state"]'),s=n.find('input[name="card_city"]');void 0!==e.states_found&&!0===e.states_found?r=t(e.data):(r=''),r=t(r)),!1===n.hasClass("float-labels-enabled")?(void 0!==e.states_require&&!0===e.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==e.city_require&&!0===e.city_require?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.removeAttr("required"))):(void 0!==e.states_require&&!0===e.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==e.city_require&&!0===e.city_require?(s.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),s.attr("required",!0)):(s.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),s.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(i),a.replaceWith(r),void 0!==e.show_field&&!0===e.show_field?(n.find("p#give-card-state-wrap").removeClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-last"),n.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(n.find("p#give-card-state-wrap").addClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-wide"),n.find("p#give-card-zip-wrap").removeClass("form-row-last"));var l=!!e.zip_require;n.find("input#card_zip").toggleClass("required",l).attr("required",l).attr("aria-required",l),n.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!l),o.trigger("give_checkout_billing_address_updated",[e,n.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),o.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(n)})),o.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(t(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),o.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){var e,n=t(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),t(this).prop("checked",!0),t(this).parent().addClass("give-gateway-option-selected"),e=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+e))})),o.on("focus",".give-donation-amount .give-text-input",(function(e){var n=t(this).parents("form");t(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);t(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),t(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),o.on("blur",".give-donation-amount .give-text-input",(function(e,n,r,i){var o=void 0!==n?n:t(this).closest("form"),a=t(this).attr("data-amount"),s=void 0!==r?r:t(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),d=0===s?c:Give.fn.unFormatCurrency(s,l),f=Give.form.fn.formatAmount(d,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===d||0===d){var m=t('.give-donation-levels-wrap [data-default="1"]',n);m.length&&(i=m.data("price-id"),s=d=Give.fn.unFormatCurrency(m.val(),l),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,i,o),t(this).val(f),Give.form.fn.isValidDonationAmount(o))t(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){t(this).remove()})),Give.form.fn.disable(o,!1);else{t(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var p=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===p.length&&d=c&&p.slideUp(300,(function(){t(this).remove()})),0===v.length&&d>u?Give.notice.fn.renderNotice("bad_maximum",o):d<=u&&v.slideUp(300,(function(){t(this).remove()}))}a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(t('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(d,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),t(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),t(document).trigger("give_donation_value_updated",[o,d,i])})),o.on("click touchend",".give-donation-level-btn",(function(e){e.preventDefault(),Give.form.fn.autoSetMultiLevel(t(this))})),o.on("click touchend",".give-radio-input-level",(function(e){Give.form.fn.autoSetMultiLevel(t(this))})),o.on("change",".give-select-level",(function(e){Give.form.fn.autoSetMultiLevel(t(this))})),o.on("click",".give_terms_links",(function(e){e.preventDefault();var n=t(this).closest("fieldset");return t("[class^=give_terms-]",n).slideToggle(),t("a.give_terms_links",n).toggle(),!1})),t('label[for^="give-radio-level"]').on("click",(function(e){var n=t(this).closest("form").find("#"+t(this).attr("for"));n.length&&(n.trigger("click"),e.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;if("focusout"===e.type)r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);else if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}))}))},31441:(e,t,n)=>{"use strict";n(59211),n(92979),n(57729);var r=n(15303),i=(n(45099),function(e){return new r.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var r=setTimeout((function(){i()}),400);e.setAttribute("data-contentLoaded","1");var i=function(){clearTimeout(r),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)});const o=window.wp.i18n,a={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('
'+this.getNotice(e,t)+"
");break;case"bad_maximum":n=jQuery('
'+this.getNotice(e,t)+"
")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r="undefined"!=typeof commonL10n?commonL10n.dismiss:(0,o.__)("Dismiss this notice.","give");return'

').concat(e).concat(n.dismissible?' "):"","")}}};var s=n(87757),l=n.n(s);const c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}};function u(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}const d={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;if("nonce"===(e=void 0===e?"data":e))n.find('input[name="give-form-hash"]').val(t);if(void 0!==r&&!r.length)return!1;if("attr"===e)n.attr(r,t);else n.data(r,t);return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),"custom"!==r||n?t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r]):t.find(".give-donation-amount .give-text-input").focus()},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(f=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))}}(l().mark((function e(t){var n,r,i,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.resetDonationButton(e),t&&this.addErrors(e,t)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}};var f;const m={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},p={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(e),"&text=").concat(encodeURIComponent(t)),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(e)),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(r))}}};var v=n(50743),g=n.n(v),h={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t0&&(a=o.substring(o.indexOf("."),o.length)),s=(o=Math.floor(o).toString()).substring(o.length-3),""!==(l=o.substring(0,o.length-3))&&(s=r.thousand+s),i=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,i)+(c.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=g().formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(g().unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?h.cache["form_"+h.form.fn.getInfo("form-id",n)][e]=t:h.cache[e]=t},getCache:function(e,t){var n,r=h.cache["form_"+h.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":h.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'':"",o=null!==r.loadingText?r.loadingText:h.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='

').concat((o+i).trim(),"
"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};h.notice=a,h.form=d,h.donor=m,h.util=c,h.share=p;const y=h;n(51325),n(25630);var b=n(48880),w=n.n(b);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}jQuery((function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),void 0!==window.csGlobal&&window.jQuery((function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",(function(t,n){return!e(n).hasClass("give-card")&&t}))})),t.on("click touchend",".give-disabled",(function(e){return e.preventDefault(),!1})),t.on("give_gateway_loaded",(function(e,t,n){give_fl_trigger()})),t.on("give_checkout_billing_address_updated",(function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()})),t.on("click",".give-btn-reveal",(function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i="#give-payment-mode-select",o=e(i),a="";return n.hide(),e("li",o).length>1&&(a=i+", "),r.find(a+"#give_purchase_form_wrap").slideDown(),!1})),t.on("click",".give-btn-modal",(function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)}));var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each((function(t,n){n=e(n),window.setTimeout((function(){n.slideUp()}),n.data("dismiss-interval"))})),e("body").on("click",".give-notice-close",(function(){e(this).hide(),e(this).closest(".give_notices").slideUp()})),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",(function(t){if(t.persisted||_("undefined")!==window.performance&&2===window.performance.navigation.type){var n=e("body").find("form.give-form");n.length&&(n[0].reset(),Give.form.fn.resetAllNonce(n))}}))})),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");var n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){var r=jQuery(".give-form-content-wrap",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);r.length&&!jQuery(".give-form-content-wrap",t).length&&(r.hasClass("give_post_form-content")?t.append(r):t.prepend(r)),a.length&&!jQuery(".give_errors",t).length&&a.each((function(e,n){t.prepend(jQuery(n))})),o.length&&!jQuery(">.give_error",t).length&&o.each((function(e,n){t.prepend(jQuery(n))})),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof w()?window.give_float_labels.rebuild():window.give_float_labels=new(w())(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,(function(t,n){(e=jQuery("input",n)).length&&jQuery.each(e,(function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})}))}))},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=void 0!==_(e.states_found)&&1==e.states_found?e.data:'',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),void 0!==_(e.show_field)&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1};n(69571);function x(e,t){for(var n=0;n{!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,r,i){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,r),i)}}(window)},45099:()=>{jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after(''),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(r=r.join(" "),t.removeClass(r),t.append(''))),t.addClass("hint--top"),15{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":t>n,">=":t>=n,"<":t>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(l=i)|s>>>32-l,n);var s,l}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<>>9<<4)]=t;var f=1732584193,m=-271733879,p=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return n}function m(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return i}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(d(m(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=m(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(m(t)),512+8*t.length),f(d(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):p(h(t,e)):n?g(e):p(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},48880:(e,t)=>{var n;!function(r,i,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?i.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_((function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)}),(function(e){this.reset_(e)}))},this.rebuild=function(){this.loop_(null,(function(e){this.floatLabel_(e,!0)}))}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_((function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))}),(function(t){e.floatLabel_(t)}))},initEvents_:function(){var e=this;e.events={blur:e.onBlur_.bind(e),change:e.onInput_.bind(e),focus:e.onFocus_.bind(e),input:e.onInput_.bind(e),reset:e.onReset_.bind(e)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this,n=t.getLabel_(e);n&&(e.classList.add(t.prefixed_(e.tagName.toLowerCase())),t.setLabel_(n,e),t.setPlaceholder_(n,e),t.wrapLabel_(n,e),t.handleEvents_(e,"add"),"function"==typeof t.config_[t.current_].customEvent&&t.config_[t.current_].customEvent.call(t,e))},createEl_:function(e,t){var n="string"==typeof e?i.createElement(e):e;for(var r in t=t||{})t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach((function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])})),t},floatLabel_:function(e,t){var n=this;if(n.isValidField_(e)){if(n.hasParent_(e)){if(!0!==t)return;n.reset_(e)}n.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach((function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])}))},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=this,r=0;r{e.exports=n(98069)},98069:(e,t,n)=>{var r=n(99560),i=n(17673),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function l(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=l(t);return r+s(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=l(t);return i+s(e)+"."+r+o}}},15303:(e,t,n)=>{e.exports=n(49457)},49402:e=>{!function(t){if("undefined"!=typeof window){var n=!0,r="",i=0,o="",a=null,s="",l=!1,c={resize:1,click:1},u=128,d=!0,f=1,m="bodyOffset",p=m,v=!0,g="",h={},y=32,b=null,w=!1,_=!1,x="[iFrameSizer]",C=x.length,k="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},E="child",O=window.parent,S="*",j=0,T=!1,A=null,M=16,L=1,N="scroll",P=N,G=window,z=function(){oe("onMessage function not defined")},F=function(){},B=function(){},q={height:function(){return oe("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return oe("Custom width calculation function not defined"),document.body.scrollWidth}},D={},R=!1;try{var Q=Object.create({},{passive:{get:function(){R=!0}}});window.addEventListener("test",ee,Q),window.removeEventListener("test",ee,Q)}catch(e){}var U,H,V,W,$,K,Y,J={bodyOffset:function(){return document.body.offsetHeight+ge("marginTop")+ge("marginBottom")},offset:function(){return J.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return q.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(J))},min:function(){return Math.min.apply(null,ye(J))},grow:function(){return J.max()},lowestElement:function(){return Math.max(J.bodyOffset()||J.documentElementOffset(),he("bottom",we()))},taggedElement:function(){return be("bottom","data-iframe-height")}},Z={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return q.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Z.bodyScroll(),Z.documentElementScroll())},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},rightMostElement:function(){return he("right",we())},taggedElement:function(){return be("right","data-iframe-width")}},X=(U=_e,$=null,K=0,Y=function(){K=Date.now(),$=null,W=U.apply(H,V),$||(H=V=null)},function(){var e=Date.now();K||(K=e);var t=M-(e-K);return H=this,V=arguments,t<=0||t>M?($&&(clearTimeout($),$=null),K=e,W=U.apply(H,V),$||(H=V=null)):$||($=setTimeout(Y,t)),W});te(window,"message",(function(t){var n={init:function(){g=t.data,O=t.source,ae(),d=!1,setTimeout((function(){v=!1}),u)},reset:function(){v?ie("Page reset ignored by init"):(ie("Page size reset by host page"),ke("resetPage"))},resize:function(){xe("resizeParent","Parent window requested size check")},moveToAnchor:function(){h.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ie("PageInfoFromParent called from parent: "+e),B(JSON.parse(e)),ie(" --")},message:function(){var e=i();ie("onMessage called from parent: "+e),z(JSON.parse(e)),ie(" --")}};function r(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function o(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var i=r();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||o()||oe("Unexpected message ("+t.data+")")}x===(""+t.data).substr(0,C)&&(!1===d?a():o()?n.init():ie('Ignored message of type "'+r()+'". Received before initialization.'))})),te(window,"readystatechange",Oe),Oe()}function ee(){}function te(e,t,n,r){e.addEventListener(t,n,!!R&&(r||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e){return x+"["+k+"] "+e}function ie(e){w&&"object"==typeof window.console&&console.log(re(e))}function oe(e){"object"==typeof window.console&&console.warn(re(e))}function ae(){var e;!function(){function e(e){return"true"===e}var a=g.substr(C).split(":");k=a[0],i=t!==a[1]?Number(a[1]):i,l=t!==a[2]?e(a[2]):l,w=t!==a[3]?e(a[3]):w,y=t!==a[4]?Number(a[4]):y,n=t!==a[6]?e(a[6]):n,o=a[7],p=t!==a[8]?a[8]:p,r=a[9],s=a[10],j=t!==a[11]?Number(a[11]):j,h.enable=t!==a[12]&&e(a[12]),E=t!==a[13]?a[13]:E,P=t!==a[14]?a[14]:P,_=t!==a[15]?Boolean(a[15]):_}(),ie("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(se,e),z="onMessage"in e?e.onMessage:z,F="onReady"in e?e.onReady:F,S="targetOrigin"in e?e.targetOrigin:S,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,P="widthCalculationMethod"in e?e.widthCalculationMethod:P}function t(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),q[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),P=t(P,"width"));ie("TargetOrigin for parent set to: "+S)}(),function(){t===o&&(o=i+"px");le("margin",function(e,t){-1!==t.indexOf("-")&&(oe("Negative CSS value ignored for "+e),t="");return t}("margin",o))}(),le("background",r),le("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),fe(),me(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),G.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,ue("remove"),null!==a&&a.disconnect(),clearInterval(b)),Ee(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ee(0,0,"close")},getId:function(){return k},getPageInfo:function(e){"function"==typeof e?(B=e,Ee(0,0,"pageInfo")):(B=function(){},Ee(0,0,"pageInfoStop"))},moveToAnchor:function(e){h.findTarget(e)},reset:function(){Ie("parentIFrame.reset")},scrollTo:function(e,t){Ee(t,e,"scrollTo")},scrollToOffset:function(e,t){Ee(t,e,"scrollToOffset")},sendMessage:function(e,t){Ee(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,fe()},setWidthCalculationMethod:function(e){P=e,me()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),S=e},size:function(e,t){xe("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==_)return;function e(e){Ee(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){ie("Add event listener: "+n),te(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),pe(),h=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function r(e){function r(e){var t=n(e);ie("Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),Ee(t.y,t.x,"scrollToOffset")}var i=e.split("#")[1]||e,o=decodeURIComponent(i),a=document.getElementById(o)||document.getElementsByName(o)[0];t!==a?r(a):(ie("In page link (#"+i+") not found in iFrame, so sending to parent"),Ee(0,0,"inPageLink","#"+i))}function i(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&r(t)}function o(){function e(e){function t(e){e.preventDefault(),r(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",i)}function s(){setTimeout(i,u)}function l(){Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),o(),a(),s()):oe("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}h.enable?l():ie("In page linking not enabled");return{findTarget:r}}(),xe("init","Init message from host page"),F()}function se(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],oe("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function le(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,ie("Body "+e+' set to "'+n+'"'))}function ce(e){var t={add:function(t){function n(){xe(e.eventName,e.eventType)}D[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,r,i=D[e];delete D[e],t=window,n=e,r=i,t.removeEventListener(n,r,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),ie(ne(e.method)+" event listener: "+e.eventType)}function ue(e){ce({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ce({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ce({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ce({method:e,eventType:"Input",eventName:"input"}),ce({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ce({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ce({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ce({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ce({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ce({method:e,eventType:"Touch Start",eventName:"touchstart"}),ce({method:e,eventType:"Touch End",eventName:"touchend"}),ce({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ce({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ce({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ce({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===E&&ce({method:e,eventType:"IFrame Resized",eventName:"resize"})}function de(e,t,n,r){return t!==e&&(e in n||(oe(e+" is not a valid option for "+r+"CalculationMethod."),e=t),ie(r+' calculation method set to "'+e+'"')),e}function fe(){p=de(p,m,J,"height")}function me(){P=de(P,N,Z,"width")}function pe(){var e;!0===n?(ue("add"),e=0>y,window.MutationObserver||window.WebKitMutationObserver?e?ve():a=function(){function e(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",o,!1),l.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){l.splice(l.indexOf(e),1)}function n(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",o,!1),t(e)}function r(e,t,r){n(e.target),xe(t,r+": "+e.target.src)}function i(e){r(e,"imageLoad","Image loaded")}function o(e){r(e,"imageLoadFailed","Image load failed")}function a(t){xe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function s(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return u=new c(a),ie("Create body MutationObserver"),u.observe(e,t),u}var l=[],c=window.MutationObserver||window.WebKitMutationObserver,u=s();return{disconnect:function(){"disconnect"in u&&(ie("Disconnect body MutationObserver"),u.disconnect(),l.forEach(n))}}}():(ie("MutationObserver not supported in this browser!"),ve())):ie("Auto Resize disabled")}function ve(){0!==y&&(ie("setInterval: "+y+"ms"),b=setInterval((function(){xe("interval","setInterval: "+y)}),Math.abs(y)))}function ge(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function he(e,t){for(var n=t.length,r=0,i=0,o=ne(e),a=Date.now(),s=0;si&&(i=r);return a=Date.now()-a,ie("Parsed "+n+" HTML elements"),ie("Element position calculated in "+a+"ms"),function(e){e>M/2&&ie("Event throttle increased to "+(M=2*e)+"ms")}(a),i}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(oe("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),he(e,n)}function we(){return document.querySelectorAll("body *")}function _e(e,n,r,i){var o,a;!function(){function e(e,t){return!(Math.abs(e-t)<=j)}return o=t!==r?r:J[p](),a=t!==i?i:Z[P](),e(f,o)||l&&e(L,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in I||l&&P in I)?Ie(n):e in{interval:1}||ie("No change in size detected"):(Ce(),Ee(f=o,L=a,e))}function xe(e,t,n,r){T&&e in c?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),"init"===e?_e(e,t,n,r):X(e,t,n,r))}function Ce(){T||(T=!0,ie("Trigger event lock on")),clearTimeout(A),A=setTimeout((function(){T=!1,ie("Trigger event lock off"),ie("--")}),u)}function ke(e){f=J[p](),L=Z[P](),Ee(f,L,e)}function Ie(e){var t=p;p=m,ie("Reset trigger event: "+e),Ce(),ke("reset"),p=t}function Ee(e,n,r,i,o){var a;t===o?o=S:ie("Message targetOrigin: "+o),ie("Sending message to host page ("+(a=k+":"+e+":"+n+":"+r+(t!==i?":"+i:""))+")"),O.postMessage(x+a,o)}function Oe(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},46702:(e,t)=>{var n,r,i;!function(o){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,u="message".length,d="[iFrameSizer]",f=d.length,m=null,p=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){O("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){D(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),r=[],(i="function"==typeof(n=V)?n.apply(t,r):n)===o||(e.exports=i),window.iFrameResize=window.iFrameResize||V()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function _(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function C(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function k(e){return g[e]?g[e].log:l}function I(e,t){S("log",e,t,k(e))}function E(e,t){S("info",e,t,k(e))}function O(e,t){S("warn",e,t,!0)}function S(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](C(t),n)}function j(e){function t(){i("Height"),i("Width"),F((function(){z(A),N(D),v("onResized",A)}),A,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function r(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function i(e){var t=Number(g[D]["max"+e]),n=Number(g[D]["min"+e]),r=e.toLowerCase(),i=Number(A[r]);I(D,"Checking "+r+" is in range "+n+"-"+t),it&&(i=t,I(D,"Set "+r+" to max value")),A[r]=""+i}function o(e){return j.substr(j.indexOf(":")+u+e)}function a(e,t){var n,r,i;n=function(){var n,r;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},r=32,b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),r))}function s(e){var t=e.getBoundingClientRect();return L(D),{x:Math.floor(Number(t.left)+Number(m.x)),y:Math.floor(Number(t.top)+Number(m.y))}}function l(e){var t=e?s(A.iframe):{x:0,y:0},n={x:Number(A.width)+t.x,y:Number(A.height)+t.y};I(D,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):O(D,"Unable to scroll to requested position, window.parentIFrame not found"):(m=n,c(),I(D,"--"))}function c(){!1!==v("onScroll",m)?N(D):P()}function p(e){var t={};if(0===Number(A.width)&&0===Number(A.height)){var n=o(9).split(":");t={x:n[1],y:n[0]}}else t={x:A.width,y:A.height};v(e,{iframe:A.iframe,screenX:Number(t.x),screenY:Number(t.y),type:A.type})}function v(e,t){return T(D,e,t)}var h,y,w,C,k,S,j=e.data,A={},D=null;"[iFrameResizerChild]Ready"===j?function(){for(var e in g)B("iFrame requested init",q(e),g[e].iframe,e)}():d===(""+j).substr(0,f)&&j.substr(f).split(":")[0]in g?(w=j.substr(f).split(":"),C=w[1]?parseInt(w[1],10):0,k=g[w[0]]&&g[w[0]].iframe,S=getComputedStyle(k),A={iframe:k,id:w[0],height:C+n(S)+r(S),width:w[2],type:w[3]},D=A.id,g[D]&&(g[D].loaded=!0),(y=A.type in{true:1,false:1,undefined:1})&&I(D,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return g[e]||(t=!1,O(A.type+" No settings for "+e+". Message was: "+j)),t}(D)&&(I(D,"Received: "+j),h=!0,null===A.iframe&&(O(D,"IFrame ("+A.id+") not found"),h=!1),h&&function(){var t,n=e.origin,r=g[D]&&g[D].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(D,"Checking connection is from allowed list of origins: "+r);eg[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[a]&&g[a].bodyMargin)&&"0"!==(g[a]&&g[a].bodyMargin)||(g[a].bodyMarginV1=g[a].bodyMargin,g[a].bodyMargin=g[a].bodyMargin+"px"),r=q(a),(i=w())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&M(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),_(e,"load",(function(){var t,n;B("iFrame.onload",r,e,o,!0),t=g[a]&&g[a].firstRun,n=g[a]&&g[a].heightCalculationMethod in v,!t&&n&&G({iframe:e,height:0,width:0,type:"init"})})),B("init",r,e,o,!0),g[a]&&(g[a].iframe.iFrameResizer={close:M.bind(null,g[a].iframe),removeListeners:A.bind(null,g[a].iframe),resize:B.bind(null,"Window resize","resize",g[a].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,g[a].iframe,a)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),g[a].iframe,a)}}))}function R(e,t){null===h&&(h=setTimeout((function(){h=null,e()}),t))}function Q(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),R((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&B(e,t,g[n].iframe,n)}))}function H(){_(window,"message",j),_(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),R((function(){U("Window "+e,"resize")}),16)})),_(document,"visibilitychange",Q),_(document,"-webkit-visibilitychange",Q)}function V(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(D),x("BeforeChange",(function(e,t,n){t!==n&&(t===D?Q():n===D&&Q(!0))})),x(s+"."+D,(function(){Q()}))},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,(function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}));var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var U=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},H=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",x(f+i,(function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),r.on("keydown"+i,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),x("UpdateStatus"+i,(function(e,n){n.text&&(n.text=H(n.text,t.currItem.index,t.items.length))})),x(d+i,(function(e,r,i,o){var a=t.items.length;i.counter=a>1?H(n.tCounter,o.index,a):""})),x("BuildControls"+i,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);i.click((function(){t.prev()})),o.click((function(){t.next()})),t.container.append(i.add(o))}})),x(m+i,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),x(s+i,(function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=U(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=U(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=U(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),k("LazyLoad",r),"image"===r.type&&(r.img=e('').on("load.mfploader",(function(){r.hasSize=!0})).on("error.mfploader",(function(){r.hasSize=!0,r.loadError=!0,k("LazyLoadError",r)})).attr("src",r.src)),r.preloaded=!0}}}});var V="retina";e.magnificPopup.registerModule(V,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(x("ImageHasSize."+V,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),x("ElementParse."+V,(function(t,r){r.src=e.replaceSrc(r,n)})))}}}}),E()},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(u=p.substr(0,v),d=p.substr(v+1)):(u=p,d=""),f=decodeURIComponent(u),m=decodeURIComponent(d),t(o,f)?Array.isArray(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},17673:(e,t,n)=>{"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===m)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",m="executing",p="completed",v={};function g(){}function h(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==n&&r.call(_,o)&&(b=_);var x=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function I(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},94506:(e,t,n)=>{var r,i,o;!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('
');t&&o.append("

"+t+"

"),n&&o.append("

"+n+"

"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover((function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)})).mouseout((function(){e(".blockMsg").fadeOut(1e3)}))},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each((function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})})),this.each((function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)}))},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each((function(){l(this,t)}))},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var d,p,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),p=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,w,_,x,C=c.baseZ;b=n||c.forceIframe?e(''):e(''),w=c.theme?e(''):e(''),c.theme&&v?(x='"):c.theme?(x='"):x=v?'':'',_=e(x),g&&(c.theme?(_.css(p),_.addClass("ui-widget-content")):_.css(d)),c.theme||w.css(c.overlayCSS),w.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,w,_],I=e(v?"body":s);e.each(k,(function(){this.appendTo(I)})),c.theme&&c.draggable&&e.fn.draggable&&_.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var E=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||E){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var O=m(s,"borderTopWidth"),S=m(s,"borderLeftWidth"),j=O?"(0 - "+O+")":0,T=S?"(0 - "+S+")":0;e.each(k,(function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),T&&n.setExpression("left",T),j&&n.setExpression("top",j);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}}))}if(g&&(c.theme?_.find(".ui-widget-content").append(g):_.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var A=c.onBlock?c.onBlock:t,M=c.showOverlay&&!g?A:t,L=g?A:t;c.showOverlay&&w._fadeIn(c.fadeIn,M),g&&_._fadeIn(c.fadeIn,L)}else c.showOverlay&&w.show(),g&&_.show(),c.onBlock&&c.onBlock.bind(_)();if(u(1,s,c),v?(o=_[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(f,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-m(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-m(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(_[0],c.centerX,c.centerY),c.timeout){var N=setTimeout((function(){v?e.unblockUI(c):e(s).unblock(c)}),c.timeout);e(s).data("blockUI.timeout",N)}}}function l(t,n){var r,i,s=t==window,l=e(t),d=l.data("blockUI.history"),f=l.data("blockUI.timeout");f&&(clearTimeout(f),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,(function(){0==--r&&c(i,d,n,t)}))):c(i,d,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each((function(e,t){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout((function(){f(i)}),10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function m(t,n){return parseInt(e.css(t,n),10)||0}}n.amdO.jQuery?(i=[n(19567)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},92979:(e,t,n)=>{var r=n(19567);n(94506);var i=n(66419),o={transitionDelay:250,blockWith:function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),s=i(a).first();return s&&s.preventDefault&&s.preventDefault(),r.blockUI({message:null}),setTimeout((function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always((function(){r.unblockUI()})).then(t.resolve,t.reject):r.unblockUI()}),o.transitionDelay),t.promise()},makeBlocked:function(e){return i.wrap(e,o.blockWith)}};e.exports=o},19567:e=>{"use strict";e.exports=window.jQuery},66419:function(e,t,n){e.exports=function(){var e="1.13.4",t="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||Function("return this")()||{},r=Array.prototype,i=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,a=r.push,s=r.slice,l=i.toString,c=i.hasOwnProperty,u="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,f=Array.isArray,m=Object.keys,p=Object.create,v=u&&ArrayBuffer.isView,g=isNaN,h=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i=0&&n<=w}}function $(e){return function(t){return null==t?void 0:t[e]}}var K=$("byteLength"),Y=W(K),J=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Z=u?function(e){return v?v(e)&&!q(e):Y(e)&&J.test(l.call(e))}:V(!1),X=$("length");function ee(e,t){t=function(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},Ue=Re(Qe),He=Re(_e(Qe)),Ve=re.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ke=/\\|'|\r|\n|\u2028|\u2029/g;function Ye(e){return"\\"+$e[e]}var Je=/^\s*(\w|\$)+\s*$/,Ze=0;function Xe(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Oe(e.prototype),a=e.apply(o,i);return x(a)?a:o}var et=_((function(e,t){var n=et.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s1)rt(s,t-1,n,r),i=r.length;else for(var l=0,c=s.length;l0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var ct=et(lt,2);function ut(e,t,n){t=Fe(t,n);for(var r,i=te(e),o=0,a=i.length;o0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+l,a):l=o>=0?Math.min(o+1,l):o+l+1;else if(n&&o&&l)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(s.call(r,a,l),H))>=0?o+a:-1;for(o=e>0?a:l-1;o>=0&&o0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,Pe(n,i,4),r,o)}}var xt=_t(1),Ct=_t(-1);function kt(e,t,n){var r=[];return t=Fe(t,n),bt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function It(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=0;o=0}var St=_((function(e,t,n){var r,i;return P(t)?i=t:(t=je(t),r=t.slice(0,-1),t=t[t.length-1]),wt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Te(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function jt(e,t){return wt(e,Ne(t))}function Tt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:we(e)).length;so&&(o=r);else t=Fe(t,n),bt(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}var At=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Mt(e){return e?D(e)?s.call(e):E(e)?e.match(At):nt(e)?wt(e,Me):we(e):[]}function Lt(e,t,n){if(null==t||n)return nt(e)||(e=we(e)),e[qe(e.length-1)];var r=Mt(e),i=X(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a1&&(r=Pe(r,t[1])),t=se(e)):(r=Bt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=wt(rt(t,!1,!1),String),r=function(e,n){return!Ot(t,n)}),qt(e,r,n)}));function Rt(e,t,n){return s.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Qt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Rt(e,e.length-t)}function Ut(e,t,n){return s.call(e,null==t||n?1:t)}var Ht=_((function(e,t){return t=rt(t,!0,!0),kt(e,(function(e){return!Ot(t,e)}))})),Vt=_((function(e,t){return Ht(e,t)}));function Wt(e,t,n,r){k(t)||(r=n,n=t,t=!1),null!=n&&(n=Fe(n,r));for(var i=[],o=[],a=0,s=X(e);at?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},debounce:function(e,t,n){var r,i,o,a,s,l=function(){var c=De()-i;t>c?r=setTimeout(l,t-c):(r=null,n||(a=e.apply(s,o)),r||(o=s=null))},c=_((function(c){return s=this,o=c,i=De(),r||(r=setTimeout(l,t),n&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c},wrap:function(e,t){return et(t,e)},negate:st,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:lt,once:ct,findKey:ut,findIndex:ft,findLastIndex:mt,sortedIndex:pt,indexOf:gt,lastIndexOf:ht,find:yt,detect:yt,findWhere:function(e,t){return yt(e,Le(t))},each:bt,forEach:bt,map:wt,collect:wt,reduce:xt,foldl:xt,inject:xt,reduceRight:Ct,foldr:Ct,filter:kt,select:kt,reject:function(e,t,n){return kt(e,st(Fe(t)),n)},every:It,all:It,some:Et,any:Et,contains:Ot,includes:Ot,include:Ot,invoke:St,pluck:jt,where:function(e,t){return kt(e,Le(t))},max:Tt,min:function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:we(e)).length;sr||void 0===n)return 1;if(n{if(!n){var a=1/0;for(u=0;u=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={198:0,401:0,703:0,135:0,892:0,877:0,233:0,715:0,384:0,333:0,628:0,966:0,565:0,638:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);cr(31441))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(35058))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(79977))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(55755))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(26060))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(55952))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(72751))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(63293))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(61394))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(43729))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(88496))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(59707))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(91486)));var i=r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(83908)));i=r.O(i)})(); // source --> https://myadlc.org/wp-content/plugins/js_composer/assets/js/vendors/woocommerce-add-to-cart.js?ver=5.6 window.jQuery( document ).ready( function ( $ ) { $( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) { $button && $button.hasClass( 'vc_gitem-link' ) && $button .addClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .addClass( 'vc-woocommerce-add-to-cart-loading' ) .append( $( '
' ) ); } ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) { if ( 'undefined' === typeof($button) ) { $button = $( '.vc-gitem-add-to-cart-loading-btn' ); } $button && $button.hasClass( 'vc_gitem-link' ) && $button .removeClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .removeClass( 'vc-woocommerce-add-to-cart-loading' ) .find( '.vc_wc-load-add-to-loader-wrapper' ).remove(); } ); } ); // source --> https://myadlc.org/wp-content/themes/helpinghands-child/wp-advanced-search/js/scripts.js?ver=1 // Global constants var __WPAS = { FORM : "#wp-advanced-search.wpas-ajax-enabled", CONTAINER : "#wpas-results", INNER : "#wpas-results-inner", DEBUG_CONTAINER : "#wpas-debug", PAGE_FIELD : "#wpas-paged", FORM_ID: "", KEY_PREFIX: "wpasInstance_", HASH: "", STORAGE_KEY: function() { return this.KEY_PREFIX + this.FORM_ID; } }; jQuery(document).ready(function($) { __WPAS.FORM_ID = $('#wpas-id').val(); __WPAS.HASH = $(__WPAS.FORM).data('ajax-url-hash'); var CURRENT_PAGE = 1; /** * Event listeners */ $('form.wpas-autosubmit :input').change(function() { $(this).parents('form').submit(); }); $('button.wpas-clear').click(function(e) { e.preventDefault(); $(this).parents('form').find(':input') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); $(this).parents('form.wpas-autosubmit').each(function() { $(this).submit(); return false; }); }); $('input.wpas-reset').click(function(e){ e.preventDefault(); $(this).parents('form')[0].reset(); $(this).parents('form.wpas-autosubmit').each(function() { $(this).submit(); return false; }); }); /** * AJAX Functionality */ if ($(__WPAS.FORM).length == 0) { log("No AJAX-enabled WPAS search form detected on page."); return; } if ($(__WPAS.CONTAINER).length == 0) { log("No container with ID #wpas-results found on page. Results cannot be shown"); return; } var DEBUG_ON = ($(__WPAS.FORM).hasClass('wpas-debug-enabled')) ? true : false; var SHOW_DEFAULT = ($(__WPAS.FORM).data('ajax-show-default')) ? true : false; var T = (DEBUG_ON) ? 500 : 0; if (DEBUG_ON && $(__WPAS.DEBUG_CONTAINER).length == 0) { log("WPAS_DEBUG is enabled but no container with ID #wpas-debug was found " + "on this page. Debug information cannot be shown."); return; } var ajaxLoader = { container: "wpas-load", load_btn: "wpas-load-btn", load_btn_text: "", load_img: "wpas-loading-img", load_img_url: "", init : function(form) { this.load_btn_text = $(form).data('ajax-button'); this.load_img_url = $(form).data('ajax-loading'); $(__WPAS.CONTAINER).append(this.create()); }, create: function() { var html = "
"; html += "
"; html += "
"; html += "
"; return html; }, showButton: function() { $('#'+this.load_btn).addClass('active').show(); }, hideButton: function() { $('#'+this.load_btn).removeClass('active').hide(); }, showImage: function() { $('#'+this.load_img).show(); }, hideImage: function() { $('#'+this.load_img).hide(); } }; $(__WPAS.CONTAINER).append("
"); ajaxLoader.init(__WPAS.FORM); var storage = null; if (window.location.hash.slice(1) == __WPAS.HASH) { storage = JSON.parse(localStorage.getItem("wpasInstance_"+__WPAS.FORM_ID)); } if (storage != null) { log("localStorage found"); loadInstance(); } else { setPage(1); setRequest($(__WPAS.FORM).serialize()); } if ($(__WPAS.CONTAINER).length != 0) { if (storage != null) { $(__WPAS.CONTAINER).html(storage.results); } else if (SHOW_DEFAULT) { // Show results by default if attribute is set sendRequest($(__WPAS.FORM).serialize(), CURRENT_PAGE); } } // Submits the form // Reset current page to 1 function submitForm(form) { setPage(1); var form_data = $(form).serialize(); setRequest(form_data); $(__WPAS.INNER).empty(); sendRequest(form_data, CURRENT_PAGE); } // Set AJAX request to fetch results // Appends results to the container function sendRequest(data, page) { ajaxLoader.hideButton(); ajaxLoader.showImage(); jQuery.ajax({ type: 'POST', url: WPAS_Ajax.ajaxurl, data: { action: 'wpas_ajax_load', page: page, form_data: data }, success: function(data, textStatus, XMLHttpRequest) { response = JSON.parse(data); setTimeout(function() { appendHTML(__WPAS.INNER, response.results); ajaxLoader.hideImage(); updateHTML(__WPAS.DEBUG_CONTAINER,response.debug); CURRENT_PAGE = response.current_page; var max_page = response.max_page; log("Current Page: "+CURRENT_PAGE+", Max Page: "+max_page); if (max_page == 0 || CURRENT_PAGE == max_page) { ajaxLoader.hideButton(); } else { ajaxLoader.showButton(); } window.location.hash = __WPAS.HASH; storeInstance(); unlockForm(); }, T); }, error: function(MLHttpRequest, textStatus, errorThrown){ console.log(errorThrown); } }); } function storeInstance() { var instance = { request: REQUEST_DATA, form: getFormValues(), results : getResults(), page: CURRENT_PAGE }; instance = JSON.stringify(instance); localStorage.setItem(__WPAS.STORAGE_KEY(), instance); } function addArrayValues(values, input) { var name = $(input).attr('name'); var value = $(input).val(); if (typeof values[name] == 'undefined') { values[name] = []; } if ($(input).is(":checked")) values[name].push(value); return values; } function getFormValues() { var values = {}; $(__WPAS.FORM).find(':input').not(':button, :submit, :reset').each(function() { if ($(this).attr('type') == 'checkbox') { values = addArrayValues(values, this) } else { values[$(this).attr('name')] = $(this).val(); } }); return values; } function getResults() { return $(__WPAS.CONTAINER).html(); } function loadInstance() { var instance = localStorage.getItem(__WPAS.STORAGE_KEY()); instance = JSON.parse(instance); if (instance == null) return; if (instance.form) loadForm(instance.form); if (instance.results) loadResults(instance.results); if (instance.page) setPage(instance.page); if (instance.request) setRequest(instance.request); } function loadForm(form_values) { $(__WPAS.FORM).find(':input').not(':button, :submit, :reset').each(function() { var value = form_values[$(this).attr('name')]; if ($(this).attr('type') == 'checkbox') { if (value.indexOf( $(this).val() ) >= 0) { $(this).prop('checked',true); } else { $(this).prop('checked',false); } } else { $(this).val(value); } }); } function loadResults(results) { $(__WPAS.CONTAINER).html(results); } function lockForm() { $(__WPAS.FORM).addClass('wpas-locked'); $(__WPAS.FORM).find('input:submit').attr('disabled', 'disabled'); } function formLocked() { return $(__WPAS.FORM).hasClass('wpas-locked'); } function unlockForm() { $(__WPAS.FORM).removeClass('wpas-locked'); $(__WPAS.FORM).find('input:submit').removeAttr('disabled'); } function appendHTML(el, content) { $(el).append(content); } function updateHTML(el, content) { $(el).html(content); } function setPage(pagenum) { CURRENT_PAGE = pagenum; $(__WPAS.PAGE_FIELD).val(pagenum); } function setRequest(request) { REQUEST_DATA = request; } function log(msg) { if (DEBUG_ON) console.log("WPAS: " + msg); } // AJAX Event Listeners $(__WPAS.FORM).submit(function(e) { e.preventDefault(); if (formLocked()) return; lockForm(); submitForm(this); }); $(document).on('click', '#'+ajaxLoader.load_btn+'.active', function(e){ setPage(parseInt(CURRENT_PAGE) + 1) sendRequest(REQUEST_DATA,CURRENT_PAGE); }); });